package com.haigirl.abstractdemo;

public class Circle extends Shap {

	// 圆形自身属性
	private double radias;

	@Override
	public double calculateShapeArea() {
		// 计算面积
		double aera = Math.PI * radias * radias;
		return aera;
	}

	@Override
	public double calculateShapeLength() {
		// 计算机周长
		double len = 2 * Math.PI * radias;
		return len;
	}

	public Circle(double radias) {
		super();
		this.radias = radias;
	}

	public Circle() {

	}

	public double getRadias() {
		return radias;
	}

	public void setRadias(double radias) {
		this.radias = radias;
	}

}
